/**
 * 
 */
package kr.co.insoft.auth.mapper.organization;

import kr.co.insoft.auth.model.organization.OrganizationEntityModel;
import kr.co.insoft.framework.mapper.UUIDMapper;
import kr.co.insoft.framework.mybatis.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

/**
 * @author IN-SOFT Inc. GoodwillDD(sylee@in-soft.co.kr)
 * 
 */
@Mapper
public interface OrganizationMapper extends UUIDMapper {
	/**
	 * 조직 생성
	 * 
	 * @param organizationEntityModel
	 * @throws Exception
	 */
	@Insert("INSERT INTO `T_ORGANIZATION` (`orgid`, `orgName`) VALUES(#{orgid}, #{orgName})")
	public void createOrganization(
			OrganizationEntityModel organizationEntityModel) throws Exception;

	@Update("UPDATE `T_ORGANIZATION` SET `orgManager` = #{orgManager} WHERE `orgid`=#{orgid}")
	public void updateOrganizationManager(
			OrganizationEntityModel organizationEntityModel) throws Exception;
}
